package com.design.marketPrj.application.util;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class DateUtil {

    public static String getDate(){
        SimpleDateFormat formatter= new SimpleDateFormat("yyyy-MM-dd");
        Calendar c = Calendar.getInstance();
        c.setTime(new Date());
        Date m = c.getTime();
        String date = formatter.format(m);
        return date;
    }

    public static Date getTime(){
        Calendar c = Calendar.getInstance();
        c.setTime(new Date());
        return c.getTime();
    }

}
